const Router = require('koa-router');
const { getTaskTypeList, createTaskType, deleteTaskType, updateTaskType } = require('../controller/taskType.controller');
const { idValidator } = require('../middleware');
const router = new Router();

router.get('/', getTaskTypeList);//任务类型列表
router.post('/create', createTaskType);//新建
router.post('/del', idValidator, deleteTaskType);
router.post('/edit', idValidator, updateTaskType);


module.exports = router;